package com.yanpp.tunte.security.web.bind.annotation;

import com.yanpp.tunte.security.Constants;

import java.lang.annotation.*;

/**
 * <p>绑定当前登录的用户</p>
 * <p>不同于@ModelAttribute</p>
 * @author yanpp
 * @version 1.0
 * @data 2015/6/19
 * update record
 * 1. Created by yanpp on 2015/6/19
 */
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CurrentUser {
    /**
     * 当前用户在request中的名字
     *
     * @return
     */
    String value() default Constants.CURRENT_USER;
}

